const mongoose = require("mongoose")
const Schema = mongoose.Schema

const coverSchema = new Schema({
  author:{
    type:Schema.Types.ObjectId,
    ref:"admin"
  },
  title:String,
  src:String,
  date:{
    type:Number,
    default:Date.now
  },
  // 图片类型
  type:String
})

module.exports = mongoose.model("cover",coverSchema)